iconview: Avoid usage of gdk_window_get_device_position() during DnD
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 21 May 2015 12:16:13 +0000 (14:16 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 21 May 2015 16:11:21 +0000 (18:11 +0200)
commit61cc10760d84f8600b6faf11046bb7b9a276e942
tree474d6fc6897d81f8f4152a83b4a1cbf71868a850
parentb666f14ef826051660241fddfa7c4b5b47cbb197
iconview: Avoid usage of gdk_window_get_device_position() during DnD

Just use the last coordinates given on XdndPosition/drag_motion() in
order to trigger scrolling.

When running on Xwayland, the pointer position is unknown at this
stage on the X11 side, so the coordinates given here are bogus.
This change avoids both roundtrips and this situation.

https://bugzilla.gnome.org/show_bug.cgi?id=749679
gtk/gtkiconview.c